<template>
  <div>
    <h3>选项是api</h3>

    <div>
      <!-- <StuDemo3Comp></StuDemo3Comp> -->
      <el-button type="primary" size="default" @click="accCount">佳佳</el-button>

      <p>{{ count }}</p>
    </div>
  </div>
</template>

<script>
// import StuDemo3Comp from '@/views/study2/StuDemo3.vue'

const c = 2332

export default {
  name: 'Study1StuDemo1fx',
  components: {
    // StuDemo3Comp
  },
  emits: ['inFouts'],
  props: {
    title: String,
    desc: {
      type: [String, Number],
      required: true,
      default: 'desc默认值'
    },
    user: {
      type: Object,
      required: true,
      default() {
        return {
          name: 'chao',
          age: 23
        }
      }
    }
  },
  data() {
    const str = '好好学习str'

    return {
      msg: str,
      count: c
    }
  },
  methods: {
    changeMsg() {
      this.msg = '323'
    },
    accCount() {
      this.count++
    }
  }
}
</script>
<style lang="scss" scoped></style>
